//
//  a.m
//  ClockIn_v2
//
//  Created by Tomy on 13/11/2020.
//

#import "CollectionCell.h"
#import "Masonry.h"

@interface CollectionCell() {
    UILabel *_label;
}

@end



@implementation CollectionCell

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _label = [UILabel new];
        [self addSubview:_label];
        UIEdgeInsets padding = UIEdgeInsetsMake(10, 10, 10, 10);
        [_label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self).with.insets(padding);
        }];
    }
    return self;
}

- (void)setupWithHint:(NSString *)hint {
    _label.text = hint;
}

@end
